import config, { NODE_SETING_ENUM } from '../../config'

export default {
  shape: 'path',
  width: 80,
  height: 5,
  path: 'M0,0 H 80 M 0,5 H 80 Z',
  attrs: {
    body: {
      stroke: config.nodeStroke,
      strokeWidth: config.nodeStrokeWidth,
      fill: config.nodeBgColor
    },
    data: {
      width: config.nodeWidth,
      angle: config.nodeAngle
    }
  },
  data: {
    options: {
      [NODE_SETING_ENUM.WIDTH]: { max: 500 },
      [NODE_SETING_ENUM.ANGLE]: true,
      [NODE_SETING_ENUM.STROKE]: true,
      [NODE_SETING_ENUM.STROKE_WIDTH]: true,
      [NODE_SETING_ENUM.LINE_TYPE]: { type: 2 }
    }
  }
}
